module.exports = {
    productionSourceMap: false,
    lintOnSave: false,
    assetsDir: 'index',
    devServer: {
        proxy: {
            '/api': {
                target: 'https://dowin.secosoft.cn/',
                // target: 'https://vn.do-win.com/',
                // target: 'http://app1.jzkchi.com/',
                changeOrigin: true,
                pathRewrite: {},
                // rewrite: path => path.replace(/^\/api/, '/api'),
            },
        },
    },
    configureWebpack: {
        externals: {
            AMap: 'AMap', // 高德地图配置
            Loca: 'Loca',
            AMapUI: 'AMapUI',
        },
    },
};
